{include file="public/header" /}
<body>
<div class="header">
    <i class="layui-icon layui-icon-left"></i> 修改收货地址
</div>

<form action="{:url('address/save')}" method="post" class="form layui-form">
    <input type="hidden" name="id" value="{$info.id}"/>
    <ul class="upd-phone-list">
        <li>
            <p>收货人</p>
            <input type="text" name="nickname" placeholder="请填写收货人" lay-verify="required"
                   lay-reqtext="请填写收货人" lay-verType="tips" autocomplete="off" value="{$info.nickname}">
        </li>
        <li>
            <p>手机号码</p>
            <input type="number" name="tel" placeholder="请填写联系电话" lay-verify="required"
                   lay-reqtext="请填写联系电话" lay-verType="tips" autocomplete="off" value="{$info.tel}">
        </li>
        <li>
            <p>所在地区</p>
            <div class="site-prov sunSelect" data-url="{:url('address/getArea')}" data-value="id"
                 data-name="title">
                <select name="province" data-name="请选择省" data-level="0" data-id="{$info.province}"
                        lay-verify="required"
                        lay-reqtext="请选择省" lay-verType="tips" lay-filter="sunSelect"></select>
                <select name="city" data-name="请选择市" data-level="1" data-id="{$info.city}" lay-verify="required"
                        lay-reqtext="请选择市" lay-verType="tips" lay-filter="sunSelect"></select>
                <select name="district" data-name="请选择区/县" data-level="2" data-id="{$info.district}"
                        lay-verify="required"
                        lay-reqtext="请选择区/县" lay-verType="tips" lay-filter="sunSelect"></select>
            </div>
        </li>
        <li>
            <p>详细地址</p>
            <input name="details" lay-verify="required"
                   lay-reqtext="请填写详细地址" lay-verType="tips"
                   placeholder="请填写详细地址" autocomplete="off" value="{$info.details}"/>
        </li>
    </ul>

    <div class="address-default">设置为默认地址
        <input type="checkbox" name="default" lay-skin="switch" value="1" {if $info.default == 1}checked{/if}>
    </div>

    <p class="save save-fixed upd-save" lay-submit lay-filter="save" formObj=".form">保存</p>
</form>
</body>
{include file="public/footer"/}
<script src="/static/admin/builder/js/sunSelect.js"></script>
</html>